package com.caine.mybatis.service;

import com.caine.mybatis.mapper.TestMapper;
import com.caine.mybatis.mapper.TestMapper2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: CaineZhu
 * @Description:
 * @Date: Created in 9:35 2020/11/2
 * @Modified By:
 */
@Service
public class TestService {

    @Autowired
    TestMapper testMapper;

    @Autowired
    TestMapper2 testMapper2;

    public void doSomething(){
        System.out.println("TestService do something");
        testMapper.doSomething();
        System.out.println("TestService do something2");
        testMapper2.doSomething2();
    }
}
